package daily.aug0812;

import java.io.File;

public class FileTest {
    public static void main(String[] args) {
        show01();
        show02();
        show03();
    }


    private static void show01() {
        File file01 = new File("D:\\Development\\Developer\\");
        System.out.println(file01);//D:\Development\Developer
    }
    private static void show02() {
        File file02 = new File("D:\\Development\\", "Eclipse");
        System.out.println(file02);//D:\Development\Eclipse
    }

    private static void show03() {
        File parentFile = new File("D:\\Development\\");
        File file03 = new File(parentFile, "MySQL");//此处的parentFile可以调用File类的方法
        System.out.println(file03);//D:\Development\MySQL
    }
}
